package com.ckf.login_demo.controller;


import com.ckf.login_demo.pojo.LoginData;
import org.springframework.web.bind.annotation.*;

/**
 * @author 安详的苦丁茶
 * @date 2020/5/19 15:35
 */

@RestController
public class LoginController {

    @PostMapping("/doLogin")
    @CrossOrigin
    public String doLogin(@RequestBody LoginData loginData){
        System.out.println(loginData);
        System.out.println("ok");
        return "ok";
    }
}
